﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JampToPoint : MonoBehaviour
{
    public int JumpToMap=1;
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.layer != GameSetting.MainRoleLayer)
            return;
        Debug.Log("进入跳转点");
        other.gameObject.GetComponent<MainRole>().onJumpTo(JumpToMap); 
    }
}
